import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.Calendar;
public class testInstanceDemo {
    @Test
    public void girl(){
        ApplicationContext Context = new ClassPathXmlApplicationContext("application.xml");

        Calendar calendar2 = (Calendar) Context.getBean("calendar2");
        System.out.println(calendar2.getTime());
    }
}
